﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace TestGraphic
{
    public partial class Form0 : Form
    {
        Form1 form1;
        Form3 form3;
        Form4 form4;
        Form5 form5;
        public Form0()
        {
            InitializeComponent();
        }

        private void 股票查询系统ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (form1 == null || form1.IsDisposed)
            {
                form1 = new Form1();
                form1.MdiParent = this;
                form1.WindowState = FormWindowState.Maximized;
            }
            form1.Show();
        }

        private void 策略测试系统ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (form3 == null || form3.IsDisposed)
            {
                form3 = new Form3();
                form3.MdiParent = this;
                form3.WindowState = FormWindowState.Maximized;
            }
            form3.Show();
        }

        private void 指数分析系统ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (form5 == null || form5.IsDisposed)
            {
                form5 = new Form5();
                form5.MdiParent = this;
                form5.WindowState = FormWindowState.Maximized;
            }
            form5.Show();
        }

        private void 股市分析系统ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (form4 == null || form4.IsDisposed)
            {
                form4 = new Form4();
                form4.MdiParent = this;
                form4.WindowState = FormWindowState.Maximized;
            }
            form4.Show();
        }
    }
}
